package com.sp.system.user.service;


import com.sp.system.user.service.impl.Oauth2FallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@Service
@FeignClient(value = "oauth2-server")
public interface Oauth2Service {

    @PostMapping(path = "/oauth/token")
    Map<String, Object> getAccessToken(@RequestParam Map<String, String> parameters);

    @GetMapping(value = "/ti/removeToken")
    Object removeToken(@RequestParam("accessToken") String accessToken);
}
